<div class="instructions">
  Thanks!, here is your generated file. You must paste it at <strong><?=str_replace("en",$_GET['to'],substr($_GET['file'],5,255));?></strong> in your Kleophatra CMS directory.
</div>
<label>
<?php
  $_SESSION['file'] = str_replace("/","_",$_GET['to'].'-'.$_GET['file']);
  $_SESSION['title'] = str_replace("en",$_GET['to'],substr($_GET['file'],5,255));
  unset($code);
  $array_body;
  foreach($_POST as $const => $value){
    $array_body .= '\''.$const.'\' => \''.$value."',\n,";
  }
  $array_body = substr($array_body,0,-1);
  $code = '<?php '."\n".'$kleolang->add(array( '."\n";
  $code .= $array_body;
  $code .= " )); \n ?>";
  $_SESSION['code'] = $code;
?>
<textarea rows="20" style="width:95%;">
 <?=$code;?>
</textarea>
</label>
<label>
  <a href="translator.php"><button>Translate other file</button></a>
</label>
